// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-model.ts.hbs生成
import { IEditFormModel } from '@/core';
function getModel(): IEditFormModel {
	return {
		name: 'form',
		caption: '',
		codeName: 'InterFuncForm',
		enableAutoSave: false,
		entityCodeName: 'IBIZBOOK',
		keyPSAppDEField: 'IBIZBOOKId',
		majorPSAppDEField: 'IBIZBOOKName',
		cssName: '',
		controlType: 'FORM',
		formStyle: '',
		valueRule: getValueRule(),
		createDefaultItems: getCreateDefaultItems(),
		updateDefaultItems: getUpdateDefaultItems(),
		detailModel: getDetailModel(),
	};
}
function getValueRule() {
	return [];
}
function getCreateDefaultItems() {
	return [];
}
function getUpdateDefaultItems() {
	return [];
}
function getDetailModel() {
	return {
		formpage1: {
			caption: '基本信息',
			captionItemName: '',
			name: 'formpage1',
			codeName: 'formpage1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMPAGE',
			showCaption: false,
			enableAnchor: false,
			showMoreMode: 0,
		},
		group1: {
			caption: '编辑表单内置功能',
			captionItemName: '',
			name: 'group1',
			codeName: 'group1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'GROUPPANEL',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			showMoreItems: [],
		},
		ibizbookid: {
			caption: '图书标识',
			captionItemName: '',
			name: 'ibizbookid',
			codeName: 'ibizbookid',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'IBIZBOOKId',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colMD: 24 },
		},
		ibizbookname: {
			caption: '图书名称',
			captionItemName: '',
			name: 'ibizbookname',
			codeName: 'ibizbookname',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'IBIZBOOKName',
			dataType: '25',
			required: true,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: {
				parentLayout: 'TABLE_24COL',
				colLG: 8,
				colMD: 8,
				colSM: 12,
				colXS: 12,
			},
		},
		author: {
			caption: '图书作者',
			captionItemName: '',
			name: 'author',
			codeName: 'author',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Author',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: {
				parentLayout: 'TABLE_24COL',
				colLG: 8,
				colMD: 8,
				colSM: 12,
				colXS: 12,
			},
		},
		press: {
			caption: '图书出版社',
			captionItemName: '',
			name: 'press',
			codeName: 'press',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Press',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: {
				parentLayout: 'TABLE_24COL',
				colLG: 8,
				colMD: 8,
				colSM: 12,
				colXS: 12,
			},
		},
		price: {
			caption: '图书价格',
			captionItemName: '',
			name: 'price',
			codeName: 'price',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Price',
			dataType: '7',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: {
				parentLayout: 'TABLE_24COL',
				colLG: 8,
				colMD: 8,
				colSM: 12,
				colXS: 12,
			},
		},
		type: {
			caption: '图书类型',
			captionItemName: '',
			name: 'type',
			codeName: 'type',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Type',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 3,
			convertToCodeItemText: true,
			layout: {
				parentLayout: 'TABLE_24COL',
				colLG: 8,
				colMD: 8,
				colSM: 12,
				colXS: 12,
			},
		},
		booknumber: {
			caption: '图书数量',
			captionItemName: '',
			name: 'booknumber',
			codeName: 'booknumber',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Booknumber',
			dataType: '9',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: {
				parentLayout: 'TABLE_24COL',
				colLG: 8,
				colMD: 8,
				colSM: 12,
				colXS: 12,
			},
		},
		icon: {
			caption: '图标',
			captionItemName: '',
			name: 'icon',
			codeName: 'icon',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Icon',
			dataType: '21',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: {
				parentLayout: 'TABLE_24COL',
				colLG: 8,
				colMD: 8,
				colSM: 12,
				colXS: 12,
			},
		},
		lendouttime: {
			caption: '借出日期',
			captionItemName: '',
			name: 'lendouttime',
			codeName: 'lendouttime',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: 'YYYY-MM-DD',
			fieldCodeName: 'Lendouttime',
			dataType: '5',
			required: true,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: {
				parentLayout: 'TABLE_24COL',
				colLG: 8,
				colMD: 8,
				colSM: 12,
				colXS: 12,
			},
		},
		returntime: {
			caption: '归还日期',
			captionItemName: '',
			name: 'returntime',
			codeName: 'returntime',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: 'YYYY-MM-DD',
			fieldCodeName: 'Returntime',
			dataType: '5',
			required: true,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: {
				parentLayout: 'TABLE_24COL',
				colLG: 8,
				colMD: 8,
				colSM: 12,
				colXS: 12,
			},
		},
		subtext: {
			caption: '图书描述',
			captionItemName: '',
			name: 'subtext',
			codeName: 'subtext',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Subtext',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: {
				parentLayout: 'TABLE_24COL',
				colLG: 24,
				colMD: 24,
				colSM: 24,
				colXS: 24,
			},
		},
		grouppanel1: {
			caption: '分组面板',
			captionItemName: '',
			name: 'grouppanel1',
			codeName: 'grouppanel1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'GROUPPANEL',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			showMoreItems: [],
			uIActionGroup: {
				extractMode: '',
				caption: '打开文档',
				details: [
					{
						caption: '打开文档',
						uIActionMode: 'FRONT',
						disabled: false,
						visible: true,
						uIActionTag: 'openDocument',
						noPrivDisplayMode: 1,
						dataAccessAction: 'OPEN_DOCUMENT',
						actionTarget: 'SINGLEKEY',
						showCaption: true,
						showIcon: true,
						predefinedType: '',
						actionDECodeName: 'IBIZBOOK',
					},
					{
						caption: '打开实体看板文档',
						uIActionMode: 'FRONT',
						disabled: false,
						visible: true,
						uIActionTag: 'openKanbanDocument',
						noPrivDisplayMode: 2,
						dataAccessAction: '',
						actionTarget: 'NONE',
						showCaption: true,
						showIcon: true,
						predefinedType: '',
						actionDECodeName: 'IBIZBOOK',
					},
				],
			},
		},
		button1: {
			caption: '测试按钮',
			captionItemName: '',
			name: 'button1',
			codeName: 'button1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'BUTTON',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			uIAction: {
				caption: '打开文档',
				uIActionMode: 'FRONT',
				disabled: false,
				visible: true,
				uIActionTag: 'openDocument',
				noPrivDisplayMode: 1,
				dataAccessAction: 'OPEN_DOCUMENT',
				actionTarget: 'SINGLEKEY',
				showCaption: true,
				predefinedType: '',
				actionDECodeName: 'IBIZBOOK',
			},
		},
	};
}
export const model = getModel();
